package com.reborn.mall.api.service.impl;

import com.reborn.mall.api.mybatis.mapper.NewProductRecommendMapper;
import com.reborn.mall.api.model.entity.NewProductRecommend;
import com.reborn.mall.api.model.entity.Product;
import com.reborn.mall.api.service.NewProductRecommendService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * TODO: Here is description
 *
 * @author wu.yue
 * @since 2020/2/18
 */
@Service
public class NewProductRecommendServiceImpl extends BaseServiceImpl<NewProductRecommend> implements NewProductRecommendService {

    @Autowired
    private NewProductRecommendMapper mapper;

    @Override
    public List<Product> findRecommendedProducts() {
        return mapper.findRecommendedProducts();
    }
}
